import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';

class RefreshWidget {
  static ClassicalHeader header() {
    return ClassicalHeader(
      refreshText: '下拉刷新',
      refreshReadyText: '释放刷新',
      refreshingText: '正在刷新...',
      refreshedText: '刷新结束',
      infoText: '更新于 %T',
      bgColor: Colors.transparent,
      textColor: Colors.black54,
      infoColor: const Color(0xff0059B9),
    );
  }

  static ClassicalFooter footer() {
    return ClassicalFooter(
      loadText: '上拉加载',
      loadReadyText: '释放加载',
      loadingText: '正在加载',
      loadedText: '加载完成',
      noMoreText: '没有更多数据',
      infoText: '更新于 %T',
      bgColor: Colors.transparent,
      textColor: Colors.black54,
      infoColor: const Color(0xff0059B9),
    );
  }
}
